package com.webchat.pgc.repository.entity.mall;


import com.webchat.pgc.repository.entity.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

/**
 * 商品SKU销售属性名（机身颜色，容量配置）
 */
@Data
@Entity
@Table(name = "web_chat_mall_property")
public class MallProperty extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    /**
     * 销售属性名：颜色
     */
    @Column(name = "name")
    private String name;

    /**
     * 是否系统默认， true代表系统级别
     */
    @Column(name = "is_default")
    private Boolean isDefault;

    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;

}
